<template>
  <el-select v-model="dict">
    <el-option v-for="item in dictionaries[category]" :key="item.code" :label="item.name" :value="item.code"></el-option>
  </el-select>
</template>

<script>
  import {Select} from 'element-ui'

  export default {
    name: "ExtSelect",
    mixins: [Select],
    props: {
      category: {
        type: String,
        require: true
      }
    },
    data() {
      return {
        dict:'',
        dictionaries: {
          sex: [
            {name: '男', code: '1'},
            {name: '女', code: '2'}
          ]
        }
      }
    }
  }
</script>

<style scoped>

</style>
e
